package com.elephant.dao;

import com.elephant.pojo.Department;
import com.elephant.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.*;

@Repository
@Mapper
public interface EmployeeDao {
    //add
    void add(Employee employee);

    //获取所有
    List<Employee> getAllEmployees();
    //通过id获得
    Employee getEmployeeById(int id);
    //删除
    void deleteEmployee(int id);

    //update
    void updateEmployee(Employee employee);

    Employee getEmployeeByName(String name);
}
